/*
 * Creation : 27/09/2013
 */
/**
 * 
 */
package com.japcatalog.service.impl;

import java.util.Collection;

import com.japcatalog.dao.TrademarkDao;
import com.japcatalog.dao.impl.TrademarkDaoImpl;
import com.japcatalog.model.Trademark;
import com.japcatalog.service.TrademarkService;

/**
 * The Class TrademarkServiceImpl.
 * 
 * @author Fernando Ariel Perellis
 */
public class TrademarkServiceImpl implements TrademarkService {

	/** The trademark dao. */
	private TrademarkDao trademarkDao = new TrademarkDaoImpl();

	/**
	 * Getter trademarkDao.
	 * 
	 * @return the trademarkDao
	 */
	public TrademarkDao getTrademarkDao() {
		return trademarkDao;
	}

	/**
	 * Setter trademarkDao.
	 * 
	 * @param trademarkDao
	 *            the trademarkDao to set
	 */
	public void setTrademarkDao(TrademarkDao trademarkDao) {
		this.trademarkDao = trademarkDao;
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#findAll()
	 */
	@Override
	public Collection<Trademark> findAll() {
		return this.trademarkDao.findAll();
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#findById(java.lang.Long)
	 */
	@Override
	public Trademark findById(Long id) {
		return this.trademarkDao.findById(id);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#create(com.japcatalog.model.Trademark)
	 */
	@Override
	public Long create(Trademark trademark) {
		return this.trademarkDao.create(trademark);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#update(com.japcatalog.model.Trademark)
	 */
	@Override
	public void update(Trademark trademark) {
		this.trademarkDao.update(trademark);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#delete(com.japcatalog.model.Trademark)
	 */
	@Override
	public void delete(Trademark trademark) {
		this.trademarkDao.delete(trademark);

	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.japcatalog.dao.TrademarkService#delete(java.lang.Long)
	 */
	@Override
	public void delete(Long id) {
		this.trademarkDao.delete(id);

	}

}
